<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * Class CreateReportsTable.
 */
class CreateReportsTable extends Migration
{
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('reports', function(Blueprint $table) {

			$table->increments('id');
			$table->integer('user_id')->comment('举报人id');
			$table->string('product_name',64)->comment('名称');
			$table->string('shop_name',64)->comment('店铺名称');
			$table->integer('report_type_id',64)->comment('举报类型id');
			$table->string('report_type',255)->comment('举报类型');
			$table->integer('status')->default('0')->comment('状态：0为未处理，1为已处理，2为无效');
			$table->text('explain')->comment('说明');
			$table->timestamps();
			$table->softDeletes();

		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('reports');
	}
}
